#include "cp0_regdef.h"
# implementation of the timer's functions
	.globl kset_timer
# $a0 contains the time before interrupt
kset_timer:		
	mtc0 $0, count #init count to zero
	mtc0 $a0, compare # set the compare register to create an interrupt when count == compare
	jr $ra

